<div class="row">
	<div class="col-lg-12">
	
	  <div class="form-group">
	 
         <label>Add Category</label>
                            						 
	   <form action="adminCategories/addCategory" method="post">
                <label>name_en</label>   
            <input type="text" name="name_en" value="" />
			 <label>name_ar</label>
			<input type="text" name="name_ar" value="" />
            <input type="submit" name="submit_add_category" value="Submit" />
			
			
			
        </form>	
                                
       </div>     
      		 
		<h2>Categories</h2>
		<div class="table-responsive">
			<table class="table table-bordered table-hover table-striped">
				<thead>
					<tr>
						<th>Category_ID</th>
						<th>Name_en</th>
						<th>Name_ar</th>						
						<th>Edit</th>
						<td>DELETE</td>
					</tr>
				</thead>
				<tbody>
				<?php
			foreach($categories as $category) {
				?>
					<tr class="active">
						<td><?php if (isset($category->category_id)) echo htmlspecialchars($category->category_id, ENT_QUOTES, 'UTF-8'); ?></td>
						<td><?php if (isset($category->name_en)) echo htmlspecialchars($category->name_en, ENT_QUOTES, 'UTF-8'); ?></td>
					    <td><?php if (isset($category->name_ar)) echo htmlspecialchars($category->name_ar, ENT_QUOTES, 'UTF-8'); ?></td>
						<td><a href="<?php echo URL . 'adminCategories/editCategory/' . htmlspecialchars($category->category_id, ENT_QUOTES, 'UTF-8'); ?>">edit</a></td>
			            <td><a href="<?php echo URL . 'adminCategories/deleteCategory/' . htmlspecialchars($category->category_id, ENT_QUOTES, 'UTF-8'); ?>">delete</a></td>
                    
			<?php
			}
			?>
				</tbody>
			</table>
		</div>
	</div>
	
</div>